import Vue from 'vue'
import ElementUi from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './static/global.css'
import App from './app.vue'
import axios from 'axios'
import qs from "qs"

axios.interceptors.request.use(config => {
	config.data = qs.stringify(config.data, {
		allowDots: true 
	});
	return config;
});

axios.interceptors.response.use(response => {
	return Promise.resolve(response.data);
});


Vue.use(ElementUi)
Vue.prototype.$axios = axios

new Vue({
	el: "#app",
	render:(h) => h(App)
})